import request from '@/utils/request'
// 获取商城首页轮播图
export const getshophomeswiper = () => {
  return request("GET", "/jkkj/carousel/list")
}

// 跳转到轮播图详情获取数据
export const getswiperdeatilDate = (id) => {
  return request("GET", `/jkkj/carousel/${id}`)
}

// 查询全部分类商城类目
export const category = () => {
  return request("GET", "/jkkj/category/list")
}

// 查询全部分类商城二级类目
export const smallcategory = (params) => {
  return request("GET", "/jkkj/smallCategory/list", params)
}

// 获取用户信息
//  /jkkj/user/queryInfo /system/user/profile
export const getuerinfo = () => {
  return request("GET", '/jkkj/user/queryInfo')
}
// 获取手机号前缀
export const phonehead = () => {
  return request("GET", "/jkkj/phonePrefix/list")
}

// z入住商铺获取保证金
//   /jkkj/shopConfig/list
export const getmoney = () => {
  return request("GET", "/jkkj/shop/queryShopBondMoney")
}

// 查询店铺审核记录
export const checkshopstatus = () => {
  return request("GET", "/jkkj/shopExam/list")
}

// 新增店铺
export const addshop = (data) => {
  return request("POST", "/jkkj/shop", data)
}